package com.hongtu.supplychain.finance.util;

/**
 * 将用户信息放入本地线程中
 *
 * @author chaiy
 * @create 2017-04-17 15:52
 */
public class SessionThreadLocal {
    private static ThreadLocal<UserLoginInfo> session = new ThreadLocal<UserLoginInfo>();

    public static void setSession(UserLoginInfo info) {
        session.set(info);
    }

    public static UserLoginInfo getSession() {
        return session.get();
    }
}
